package com.crane.oss.app.bean.request.appuser;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;


/**
 * @author zhenxing.pi
 * @email ccsu123456@qq.com
 * @date 2022年03月20日 23时05分57秒
 */
@ApiModel(description = "修改用户参数")

@Getter
@Setter
@ToString

public class UpdateAppUserReq implements Serializable {
	
	private static final long serialVersionUID = -223752334793279990L;

	@ApiModelProperty(value = "用户id", name = "appUserId")
    @NotNull(message = "appUserId不能为空")
    private Long appUserId;

    @ApiModelProperty(value = "类型: 1老师 2家长", name = "userType")
    private Integer userType;

    @ApiModelProperty(value = "手机号码", name = "mobile")
    @Size(max = 11, message = "mobile长度超长")
    private String mobile;

    @ApiModelProperty(value = "登录密码", name = "password")
    @Size(max = 255, message = "password长度超长")
    private String password;

    @ApiModelProperty(value = "家长身份值", name = "identity")
    private String identity;

    @ApiModelProperty(value = "状态：2正常，1锁定，0无效", name = "status")
    @NotNull(message = "status不能为空")
    private Integer status;

    @ApiModelProperty(value = "昵称", name = "nickName")
    @Size(max = 20, message = "nickName长度超长")
    private String nickName;

    @ApiModelProperty(value = "真实姓名", name = "realName")
    @Size(max = 20, message = "realName长度超长")
    private String realName;

    @ApiModelProperty(value = "备注", name = "remark")
    @Size(max = 255, message = "remark长度超长")
    private String remark;

    @ApiModelProperty(value = "头像", name = "headUrl")
    @Size(max = 255, message = "headUrl长度超长")
    private String headUrl;

    @ApiModelProperty(value = "微信openId", name = "openId")
    @Size(max = 32, message = "openId长度超长")
    private String openId;

    @ApiModelProperty(value = "微信unionId", name = "unionId")
    @Size(max = 32, message = "unionId长度超长")
    private String unionId;

    @ApiModelProperty(value = "创建时间", name = "createTime")
    @NotNull(message = "createTime不能为空")
    private Date createTime;

    @ApiModelProperty(value = "修改时间", name = "updateTime")
    private Date updateTime;


}
